<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head profile="http://gmpg.org/xfn/11">
<title>
<?php if ( is_home() ) { ?>
<?php bloginfo('description'); ?> <?php bloginfo('name'); ?>
<?php } else { ?>
<?php wp_title(''); ?> - <?php bloginfo('name'); ?>
<?php } ?>
</title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<script type="text/javascript" src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js?<?php echo time(); ?>"></script>
<?php
if ( get_option('flickr') )
wp_enqueue_script( 'gallery', get_bloginfo('template_directory').'/simplegallery.js', array( 'jquery' ) );

if ( is_singular() )
wp_enqueue_script( 'comment-reply' );
?>

<?php /* Personal signature */
$host = $_SERVER["HTTP_HOST"];
if( ( $host == 'pat.bloggles.info' ) && is_home() ) { ?>
<style type="text/css">.entry-meta{background:#fff url(http://home.bloggles.info/wp-content/themes/hopeII/images/p_signature.jpg) no-repeat right;}</style>
<?php } ?>

<?php wp_head(); ?>
<style type="text/css">
<?php if ( get_bloginfo('language') == 'zh' ) : ?>
.entry-content { font-size: 1.5em;color:#777; font-family: georgia, arial;} .wp-caption p.wp-caption-text {font-size: 1em;}
<?php endif; ?>
<?php if ( !get_background_image() ) :?>
body{background-color:#fff;background:url( "<?php echo get_template_directory_uri().'/images/'.strtolower( date('D') ). '.jpg'; ?>" ) top center no-repeat;color:#333;}
<?php endif?>
</style>
</head>
<body <?php body_class(); ?>><div id="page" class="hfeed"><div id="skip"><a title="Skip to content" href="#content" accesskey="S">Skip to Content &darr;</a></div>
<?php wp_nav_menu( array( 'container_class' => 'menu-header', 'theme_location' => 'primary' ) ); ?>
<div id="container"><div id="rotating"><div id="gradient"><div id="branding"><?php if (is_home()) { ?><h1 class="homelink"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1><p class="description"><?php bloginfo('description'); ?></p><?php } else { ?><div class="homelink"><a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></div><p class="description"><?php bloginfo('description'); ?></p><?php } ?></div><div id="note"><?php _code(); ?></div></div></div>